<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: src/Logger.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">Logger.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>一个简单的日志记录器  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_base_type_8h_source.html">BaseType.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_singleton_8h_source.html">Singleton.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_file_util_8h_source.html">FileUtil.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_thread_util_8h_source.html">ThreadUtil.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_date_time_8h_source.html">DateTime.h</a>&quot;</code><br />
<code>#include &lt;map&gt;</code><br />
</div>
<p><a href="_logger_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_logger.html">libemb::Logger</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">日志器  <a href="classlibemb_1_1_logger.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_logger_manager.html">libemb::LoggerManager</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">日志管理器  <a href="classlibemb_1_1_logger_manager.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a9ad4220ca909cdf0a934643e233b4ab6"><td class="memItemLeft" align="right" valign="top"><a id="a9ad4220ca909cdf0a934643e233b4ab6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_INFO</b>(logName,  fmt,  arg...)&#160;&#160;&#160;do{LoggerManager::getInstance().getLogger(logName)-&gt;log(&quot;[%s]&lt;I&gt;&quot; fmt,<a class="el" href="_base_type_8h.html#a758b170f0918c7f7fe2f4c81241300fc">CSTR</a>(<a class="el" href="classlibemb_1_1_date_time.html#a611c6125b419acda633c512b54b5dfb1">libemb::DateTime::currentDateTime</a>().toString()),##arg);}while(0);</td></tr>
<tr class="separator:a9ad4220ca909cdf0a934643e233b4ab6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8b837b8965ea8fe733bd56a4d99c6b6"><td class="memItemLeft" align="right" valign="top"><a id="ac8b837b8965ea8fe733bd56a4d99c6b6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_WARN</b>(logName,  fmt,  arg...)&#160;&#160;&#160;do{LoggerManager::getInstance().getLogger(logName)-&gt;log(&quot;[%s]&lt;W&gt;&quot; fmt,<a class="el" href="_base_type_8h.html#a758b170f0918c7f7fe2f4c81241300fc">CSTR</a>(<a class="el" href="classlibemb_1_1_date_time.html#a611c6125b419acda633c512b54b5dfb1">libemb::DateTime::currentDateTime</a>().toString()),##arg);}while(0);</td></tr>
<tr class="separator:ac8b837b8965ea8fe733bd56a4d99c6b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b844862f233178a642287d6f3a8c0cc"><td class="memItemLeft" align="right" valign="top"><a id="a1b844862f233178a642287d6f3a8c0cc"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG_ERR</b>(logName,  fmt,  arg...)&#160;&#160;&#160;do{LoggerManager::getInstance().getLogger(logName)-&gt;log(&quot;[%s]&lt;E&gt;&quot; fmt,<a class="el" href="_base_type_8h.html#a758b170f0918c7f7fe2f4c81241300fc">CSTR</a>(<a class="el" href="classlibemb_1_1_date_time.html#a611c6125b419acda633c512b54b5dfb1">libemb::DateTime::currentDateTime</a>().toString()),##arg);}while(0);</td></tr>
<tr class="separator:a1b844862f233178a642287d6f3a8c0cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>一个简单的日志记录器 </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
